import javax.xml.stream.XMLOutputFactory;

public class Test {

    public static void main(String[] args) {


        int i=10;
        //实例化一个对象
//        Student student=null;
//        student = new Student();
        //对象是类的具体的实例 使用 new 关键字创建
        Student student1 = new Student();
        //操作对象  使用 点 操作  --> 的
        //获得学生姓名
         /*String studentName=student1.name;
        System.out.println("studentName=="+studentName);
        int studentAge=student1.age;
        System.out.println("studentAge=="+studentAge);
        boolean isisAdult = student1.isAdult;
        System.out.println(isisAdult);*/
        //给属性赋值
        /*student1.name="张三";
        student1.age=20;*/
        //System.out.println(student1.name);

        /*student1.eat();*/



       /* Student student2 = new Student();
        student2.name="李四";
        //System.out.println(student2.name);
        student2.eat();*/

        //操作方法  使用 点  -->>的
       /* student1.study();
        student1.eat();
        student2.study();*/

        //
       /* System.out.println(student1.age);
        int age = student1.getAge();
        System.out.println("age=="+age);*/

        Student student3 = new Student();
        //System.out.println(student3.name);

        student3.sayHello("王五");


    }

}
